package com.fjzx.androidframe.network.callback;


import com.fjzx.androidframe.network.entity.UploadResponse;

/**
 * 上传进度回调
 *
 * @author xiongyongcong
 */
public interface UploadProgressListener {
    void onProgress(long size, long total);

    void onSuccess(UploadResponse response);

    void onError(Exception e);

    abstract class SimpleUploadProgressListener implements UploadProgressListener {
        @Override
        public void onProgress(long size, long total) {}
        @Override
        public void onError(Exception e) {}
    }
}
